---
title: getAIState
description: Reference for the getAIState function from the AI SDK RSC
---

# `getAIState`

Get the current AI state.

## Import

<Snippet text={`import { getAIState } from "ai/rsc"`} prompt={false} />

<ReferenceTable packageName="rsc" functionName="getAIState" />

## Examples

<ExamplesList packageName="rsc" functionName="getAIState" />
